package pojo.entity;

import java.util.List;

public class Shop {
    private Long shopId;         //店铺id
    private String shopName;     //店铺名
    private Long userId;         //卖家id
    private User user;
    private List<Good> goodList; //关联商品
    private int shopStatus;      //店铺状态

    public int getShopStatus() {
        return shopStatus;
    }

    public void setShopStatus(int shopStatus) {
        this.shopStatus = shopStatus;
    }

    @Override
    public String toString() {
        return "Shop{" +
                "shopId=" + shopId +
                ", shopName='" + shopName + '\'' +
                ", userId=" + userId +
                ", user=" + user +
                ", goodList=" + goodList +
                ", shopStatus=" + shopStatus +
                '}';
    }

    public Shop(Long shopId, String shopName, Long userId, User user, List<Good> goodList, int shopStatus) {
        this.shopId = shopId;
        this.shopName = shopName;
        this.userId = userId;
        this.user = user;
        this.goodList = goodList;
        this.shopStatus = shopStatus;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public List<Good> getGoodList() {
        return goodList;
    }

    public void setGoodList(List<Good> goodList) {
        this.goodList = goodList;
    }



    public Shop() {
    }
}
